package com.ruoyi.common.core.domain.entity.wechat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;

import java.io.Serializable;

/**
 * 微信小程序用户岗位关系
 *
 * @author jiexiang.sun/Jason
 * @version 1.0.0
 * @create 2022-03-04 21:08
 **/
@Data
@RequiredArgsConstructor
@TableName("wechat_user_post")
public class WechatUserPost implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id，数据库自增
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户主键Id
     */
    @NonNull
    private Long userId;

    /**
     * 岗位主键id
     */
    @NonNull
    private Long postId;
}
